package ch7;
//.net老师
public class NetTeacher extends Teacher{
    private String tool;

    public NetTeacher(String name, String sex, int age, int seniority, String tool) {
        super(name, sex, age, seniority);
        this.tool = tool;
    }

    public String getTool() {
        return tool;
    }

    public void setTool(String tool) {
        this.tool = tool;
    }
    public void selfIntroduce(){
        super.selfIntroduce();
    }
    public void giveLession(){
        super.giveLession();
        System.out.println("使用"+this.tool+"教同学们学习.net");


    }
}
